﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Discussion.aspx.vb" Inherits="APhones2.Discussion" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
       >
        <Columns>
            <asp:BoundField DataField="Author" HeaderText="Author" 
                SortExpression="Author" />
            <asp:BoundField DataField="DiscussionTitle" HeaderText="DiscussionTitle" 
                SortExpression="DiscussionTitle" />
            <asp:BoundField DataField="DiscussionBody" HeaderText="DiscussionBody" 
                SortExpression="DiscussionBody" 
                 HtmlEncode="False" HtmlEncodeFormatString="False" />
            <asp:BoundField DataField="TimePost" HeaderText="TimePost" 
                SortExpression="TimePost" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Phones %>" 
        ProviderName="<%$ ConnectionStrings:Phones.ProviderName %>" 
        SelectCommand="SELECT * FROM [DiscussionForum]"></asp:SqlDataSource>
    <br />
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <br />
   Title <asp:TextBox ID="tb_DisTitle" runat="server" Height="36px" 
        TextMode="MultiLine" Width="215px"></asp:TextBox>
    <br />
    <br />
   Description <asp:TextBox ID="tb_DisDesc" runat="server" ForeColor="#CCFFFF" 
        Height="116px" TextMode="MultiLine" Width="307px"></asp:TextBox>
    <asp:HtmlEditorExtender ID="tb_DisDesc_HtmlEditorExtender" runat="server" 
        Enabled="True" TargetControlID="tb_DisDesc">
    </asp:HtmlEditorExtender>
    <br />
    <br />
   Submit Description: <asp:Button ID="bt_DiscSubmit" runat="server" Text="Submit Discussion" />
    <br />
    <br />
    <asp:Label ID="lb_Disc" runat="server"></asp:Label>
    <br />
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx">Back to Main Page</asp:HyperLink>
    <br />
</asp:Content>
